package com.javen.controller;

public class yichang {
	public static String m1(String id,String mileage) {
		try {
			check1(id);
			check4(mileage);
			
			//new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(time);
		} catch (Exception e) {
			return e.getMessage();
		}
		return "执行成功";
	}
	public static void check1(String x )throws Exception{
		try {
			Integer.parseInt(x);
		} catch (Exception e) {
			throw new Exception("{\"data\":\"id成功\"}"); 
		}
	}
	public static void check4(String x )throws Exception{
		try {
			Integer.parseInt(x);
		} catch (Exception e) {
			throw new Exception("{\"data\":\"mileage成功\"}"); 
		}
	}
	
}
